<template>
  <el-row type="flex">
    <el-col :span="18">
      <div v-for="info in classes">
        <crscard :classInfo="info"></crscard>
      </div>
      <div v-if="classes.length===0">
        <el-tag>
          温馨提示：您目前没有正在执教的教学班
        </el-tag>
      </div>
    </el-col>

  </el-row>
</template>

<script>
import Crscard from "./NBClassCard";
import tc from '../../store/teacher'

export default {
  components: {Crscard},
  computed: {
    classes() {
      return tc.getters.getClasses
    }
  },
  data() {
    return {
      lists: [1, 2, 3, 4],
    };
  },
  methods: {
    test() {
      alert('test')
    },
    test2() {
      alert('test2')
    }
  },
};
</script>

<style scoped>
.todo-list {
  padding: 10px;
  min-height: 150px;
  position: relative;
}
</style>
